<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use \think\facade\Route;


Route::domain('www', function () {
    //Route::option('ext','html')->option('cache', 600);

    Route::rule('/search/:keyword', 'home/film/search');
    Route::rule('/search', 'home/film/search');

    Route::rule('/:id', 'home/film/detail')->pattern('id','\d+');
    Route::rule('/film/:id', 'home/film/detail')->pattern('id','\d+');

    Route::rule('/new', 'home/film/index');

    /**
     * 热门电影
     */
    Route::rule('/hot/mlist', 'home/hot/mlist');
    Route::rule('/hot/:id', 'home/hot/detail');
    Route::rule('/hot', 'home/hot/index');

    Route::rule('/help', 'home/help/index');
})->bind('home');

return [

];
